SOURCE_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
patchdir = $(SOURCE_DIR)/patches

include $(SOURCE_DIR)/debian/rules.defs
include $(SOURCE_DIR)/debian/rules.patch
include $(SOURCE_DIR)/debian/rules.unpack

patch-source: $(patch_stamp)

clean-source:
	rm -rf $(stampdir)
	rm -rf $(gcc_srcdir) $(gpc_srcdir) p $(gdc_srcdir) d
	rm -rf bin
	rm -rf $(srcdir)

